the printer registers 223 without paper shortage. The binary value is 11011111.5:> when the printer is not started, the ah value is 207, and the binary value is 11001111.
The following describes the parallel programming control:
(Programming Control example) (for assembly code)// This code is a parallel port that writes data to the printer and sends control information.
# Define lpt_clear_mask 0x40# Define lpt_strobe_hi 0x0d# Define lpt_strobe_lo 0x0c
# Define lpt_status_bits 0xf8# Define lpt_b
control code is as follows:
The following is a program that I received using 1602 to display the infrared receiver header:① This is a function of the 1602 operation
------------------------------------------------*/#include "1602.h" #include "delay.h" #define CHECK_BUSY sbit RS = P2 ^4;
Define port Sbit RW = p2^5;
Sbit EN = p2^6; #define RS_CLR rs=0 #define RS_SET rs=1 #define RW_CLR rw=0 #define RW_SET rw=1 #define EN_CLR en=0 #define En_set EN =1 #define
.x86_64.rpm Rpm-ivh mysql-client-5.6.13-1.linux_glibc2.5.x86_64.rpm
Second, modify master and slave configuration (some of the parameters to be adjusted according to the actual situation):
Main Library/ETC/MY.CNF configuration:
The code is as follows
Copy Code
[Client]Port = 3306Socket =/state/partition1/mysql/mysql.sockDefault-character-set=utf8[Mysqld]server-id=1025Log-bin=mysql-master-binBinlog_format = MixedExpire_logs_days=15max_connections=1000Inno
Tags: Strong sql Top ALS ACK engine mode explicit CTECentOS runs mysql5.6 and mysql5.7 at the same timeFirst, prepare
Download mysql5.6 and mysql5.7 from MySQL website
Turn off the firewall and turn off SELinux
Create a MySQL user
~]# Useradd MySQLSecond, installationInstall mysql5.6 First1. Unzip and rename~]# Tar XF mysql-5.6.40-linux-glibc2.12-x86_64.tar.gz-c/opt~]# cd/opt~]# MV Mysql-5.6.40-linux-glibc2.12-x86_64 mysql562. Initialize MySQL~]# CD mysql56~]#./scripts/mysq
#mysql –u root –p //登录进入mysql>create database school; //创建数据库school>use school; //进入school>create table info (name varchar(10),score decimal(5,2)); //创建数据表info>insert into info (name,score) values (‘zhangsan’,88); //向info中插入数据>insert into info (name,score) values (‘lisi’,88); >select * from info; //查看数据表info中数据>exit2. Modify the MySQL configuration file, turn on the binary logging funct
.linux_glibc2.5.x86_64.rpm RPM-IVH mysql-devel-5.6.13-1.linux_glibc2.5.x86_64.rpm rpm -IVH mysql-client-5.6.13-1.linux_glibc2.5.x86_64.rpm Second, modify the master and slave configuration, note that some parameters should be adjusted according to the actual situation, the specific steps are as follows Main Library/ETC/MY.CNF configuration: [Client]port = 3306socket =/state/partition1/mysql/mysql.sockdefault-character-set=utf8[mysqld]server-id= 1025log-bin=mysql-master-binbinlog_format = Mixede
This is a creation in
Article, where the information may have evolved or changed.
Golang XML processing
Attribute must be capitalized when generating XML
packagemainimport ( "Encoding/xml" "FMT" "OS") Typexmldasstruct{xmlnamexml. name ' xml: ' Das ' DataPortstring ' xml: ' dataport,attr ' Desc string ' xml: ' desc,attr ' Srcxmlsource ' xml: ' source ' Destxmldestination ' xml: "Destination" '}type xmlsourcestruct{pathstring ' xml: ' path,attr '
-dwith_boost= "/ Usr/local/boost "-dwith_scalability_metrics=onmake make InstallA detailed explanation of the parameters can be seen in my previous blog postIv. compiling the configuration file4.1 Compiling the configuration fileFirst Instance: 6600Vim/data/6600/my.cnf[client]socket=/data/6600/mysql.sockport = 6600default-character-set = utf8[mysqld]socket= /data/6600/mysql.sockbasedir =/datadatadir =/data/6600/dataport = 6600server_id = 16600pid-fil
on the Centos7, please refer to the Lamp-mysql construction for detailed procedure.
After installing MySQL:
Vim/etc/my.cnf
[mysqld]user = mysqlbasedir = /usr/local/mysqldatadir = /usr/local/mysql/dataport = 3306character_set_server=utf8pid-file = /usr/local/mysql/mysqld.pidsocket = /usr/local/mysql/mysql.sockserver-id = 10 //设置主从服务器身份唯一标识log-bin=master-bin //开启二进制日志log-slave-updates=true //开启主从功
-ddefault_collation=utf8_general_ci--Enter to wait for CMake to completeMake make installTo configure environment variables:vi. bash_profileexport mysql_home=/home/mysql1/mysqlexport PATH= $MYSQL _home/bin: $PATH编辑/home/mysql1/mysql/my.cnf参数文件:[mysqld]# Remove leading # andSetTo the amount of RAM forThe most important data# cacheinchMysql. Start at -% of Total RAM forDedicated server,Else Ten%. Innodb_buffer_pool_size=128M # Remove Leading # to turn in a very important data integrity option:log
/data instances/data/3307 Directory of 3307 instances/data/3308 Directory of 3308 instances/data/3307/data Data directory for 3307 instances/data/3308/data Data directory for 3308 instancesNote: Production hardware configuration: MEM 32g, dual Cpu8core, HDD 6*600g SAS 15k/rpm 2-3 instancesd.2.5Initialize# Cd/mysql/mysql# Scripts/mysql_install_db--basedir=/mysql--datadir=/data/3307/data--user=mysql# Scripts/mysql_install_db--basedir=/mysql--datadir=/data/3308/data--user=mysqlD.3
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.